for a in range(1900,2901):  #定义域
 if a%4==0 and a%100!=0 or a%400==0: #筛选
     print(a)
